$(function(){
	var n = 0 ;
	$(document).ready(function(){ 
		if($(":checkbox[checked=checked]").length>0){
			var cla = $(":checkbox[checked=checked]").attr("class");
					if(cla=="sw"){
			//那么就屏蔽其他上午和全天的单选框
			$(".sw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		if(cla=="xw"){
			//那么就屏蔽其他上午和全天的单选框
			$(".xw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		if(cla=="qt"){
			//那么就屏蔽其他上午和全天的单选框
			$(".sw:not(:checked)").attr("disabled","disabled");
			$(".xw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		}
		
　　})
	//点击单选框的时候
	$("input").click(function(){	
		/*if($(this).attr("checked")=='checked' || $(this).attr("shi")=='gcp'){
				for(var i=0;i<=9;i++){

					$("ul li").eq(i).children("input").removeAttr("disabled");
					$("ul li").eq(i).children("input").attr("checked",false);
					
		
				}
		}else{
			$(this).attr("shi","gcp");*/
		if($(this).is(".sw")){
			//那么就屏蔽其他上午和全天的单选框
			$(".sw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		if($(this).is(".xw")){
			//那么就屏蔽其他上午和全天的单选框
			$(".xw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		if($(this).is(".qt")){
			//那么就屏蔽其他上午和全天的单选框
			$(".sw:not(:checked)").attr("disabled","disabled");
			$(".xw:not(:checked)").attr("disabled","disabled");
			$(".qt:not(:checked)").attr("disabled","disabled");
		}
		//}	
			
		
	})
	$("#rem").click(function(){
		
			$("input").removeAttr("disabled");
			$("input").attr("checked",!'checked');
		
	})
})
